package com.farm.farming.service;

import com.farm.entity.PageResult;
import com.farm.farming.pojo.Customer;

import java.util.List;

public interface CustomerService {

    // c
    int  add(Customer customer);
    // r
    int delete(Integer id);
    // u
    int update(Customer customer);
    // d
    List<Customer> findAll();

    PageResult<Customer> findPage(Customer customer,Integer currentPage,Integer size);

    Customer findById(Integer id);
}
